package com.rgp.apidriver.service.impl;

import com.rgp.apidriver.feign.ServiceOrderClient;
import com.rgp.apidriver.service.ApiOrderService;
import com.rgp.internalcommon.dto.OrderDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-26 16:43
 */
@Service
public class ApiOrderServiceImpl implements ApiOrderService {

    @Autowired
    private ServiceOrderClient serviceOrderClient;

    @Override
    public ResponseResult toPickUpPassenger(OrderDto orderDto) {
        return serviceOrderClient.toPickUpPassenger(orderDto);
    }

    @Override
    public ResponseResult driverArriveDeparture(OrderDto orderDto) {
        return serviceOrderClient.driverArriveDeparture(orderDto);
    }

    @Override
    public ResponseResult pickUpPassenger(OrderDto orderDto) {
        return serviceOrderClient.pickUpPassenger(orderDto);
    }

    @Override
    public ResponseResult passengerGetoff(OrderDto orderDto) {
        return serviceOrderClient.passengerGetoff(orderDto);
    }
}
